 <div class="sidebar responsive" id="sidebar">
                <script type="text/javascript">
                    try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
                </script>
                <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                        <button class="btn btn-success">
                            <i class="ace-icon fa fa-signal">
                            </i>
                        </button>
                        <button class="btn btn-info">
                            <i class="ace-icon fa fa-pencil">
                            </i>
                        </button>
                        <!-- #section:basics/sidebar.layout.shortcuts -->
                        <button class="btn btn-warning">
                            <i class="ace-icon fa fa-users">
                            </i>
                        </button>
                        <button class="btn btn-danger">
                            <i class="ace-icon fa fa-cogs">
                            </i>
                        </button>
                        <!-- /section:basics/sidebar.layout.shortcuts -->
                    </div>
                    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                        <span class="btn btn-success">
                        </span>
                        <span class="btn btn-info">
                        </span>
                        <span class="btn btn-warning">
                        </span>
                        <span class="btn btn-danger">
                        </span>
                    </div>
                </div>
                <!-- /.sidebar-shortcuts -->
                <ul class="nav nav-list">
                  {foreach name="menu_all" item="vo"}
                   <!-- 一级菜单 -->
                     {if condition="empty($vo.child)"}
                        <li class="{if condition='in_array($vo.id,$id_arr)'}active{/if}">
                            <a href="{:url($vo.name)}">
                                <i class="menu-icon fa {$vo.css}">
                                </i>
                                <span class="menu-text">
                                   {$vo.title}
                                </span>
                            </a>
                            <b class="arrow">
                            </b>
                        </li>
                        <!-- 一级菜单 -->
                      {else /}
                     
                      <!-- 二级菜单 -->
                          <li class="{if condition='in_array($vo.id,$id_arr)'}active open{/if}">
                                <a class="dropdown-toggle" href="#">
                                    <i class="menu-icon fa {$vo.css}">
                                    </i>
                                    <span class="menu-text">
                                        {$vo.title}
                                    </span>
                                    <b class="arrow fa fa-angle-down">
                                    </b>
                                </a>
                                <b class="arrow">
                                </b>
                                <ul class="submenu">
                                  {foreach name="vo.child" item="vv"}
                                    <li class="{if condition='in_array($vv.id,$id_arr)'}active{/if}">
                                        <a href="{:url($vv.name)}">
                                            <i class="menu-icon fa fa-caret-right">
                                            </i>
                                            {$vv.title}
                                        </a>
                                        <b class="arrow">
                                        </b>
                                    </li>
                                    {/foreach}
                                </ul>
                            </li>
                      <!-- 二级菜单 -->
                      {/if}
                    {/foreach}
                </ul>
                <!-- /.nav-list -->
                <!-- #section:basics/sidebar.layout.minimize -->
                <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                    <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right">
                    </i>
                </div>
                <!-- /section:basics/sidebar.layout.minimize -->
                <script type="text/javascript">
                    try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
                </script>
            </div>

                